﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using TuringVM.Core;

namespace TuringVM.Esoteric.Commands
{
    class ReadCommand : CommandBase
    {
        public override byte Code
        {
            get { return 6; }
        }

        public override string Name
        {
            get { return "ReadCommand"; }
        }

        public override byte Execute(Tape code, Tape data)
        {
            Console.WriteLine("Enter byte:");
            data.Value = (byte)Console.ReadLine()[0];
            return 0;
        }
    }
}
